package io.renren.modules.sq.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.sq.entity.SqSystemAuthorizationCodeEntity;
import org.apache.ibatis.annotations.Mapper;
import io.renren.modules.sq.dto.CodeListDto;

import java.util.List;

/**
 * 系统授权码表
 *
 * @author txw_cyl
 * @email sunlightcs@gmail.com
 * @date 2022-05-14 19:29:39
 */
@Mapper
public interface SqSystemAuthorizationCodeDao extends BaseMapper<SqSystemAuthorizationCodeEntity> {

    List<CodeListDto> getadmincodelist(String systemEditionId, String username);

    List<CodeListDto> getadmincodelistbyuid(Long userId,String systemEditionId, String username);

    int getadmincodelistbyuidnum(Long userId);

    int getadmincodelistnum();
}
